<template>
  <dir @click="fnn">
    <a href="www.baidu.com" @click.prevent.stop="fn">点击一下</a>
  
  </dir>
</template>

<script>
export default {
  methods: {
    fn() {
      console.log('点击了A标签')
    },
    fnn() {
      console.log('点击了BOX')
    },
  },
}
</script>

<style></style>
